<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Medium
  </div>
  <div>
   <h1 class="question_title">
    808. Number of Matching Subsequences
   </h1>
   <p>
    Given string
    <code>
     S
    </code>
    and a&nbsp;dictionary of words
    <code>
     words
    </code>
    , find the number of
    <code>
     words[i]
    </code>
    that is a subsequence of
    <code>
     S
    </code>
    .
   </p>
   <pre>
<strong>Example :</strong>
<strong>Input:</strong> 
S = "abcde"
words = ["a", "bb", "acd", "ace"]
<strong>Output:</strong> 3
<strong>Explanation:</strong> There are three words in <code>words</code> that are a subsequence of <code>S</code>: "a", "acd", "ace".
</pre>
   <p>
    <strong>
     Note:
    </strong>
   </p>
   <ul>
    <li>
     All words in
     <code>
      words
     </code>
     and
     <code>
      S
     </code>
     will only consists of lowercase letters.
    </li>
    <li>
     The length of
     <code>
      S
     </code>
     will be in the range of
     <code>
      [1, 50000]
     </code>
     .
    </li>
    <li>
     The length of
     <code>
      words
     </code>
     will be in the range of&nbsp;
     <code>
      [1, 5000]
     </code>
     .
    </li>
    <li>
     The length of
     <code>
      words[i]
     </code>
     will be in the range of
     <code>
      [1, 50]
     </code>
     .
    </li>
   </ul>
  </div>
  <div>
   <h1 class="question_title">
    808. 匹配子序列的单词数
   </h1>
   <p>
    给定字符串
    <code>
     S
    </code>
    和单词字典
    <code>
     words
    </code>
    , 求&nbsp;
    <code>
     words[i]
    </code>
    &nbsp;中是&nbsp;
    <code>
     S
    </code>
    &nbsp;的子序列的单词个数。
   </p>
   <pre>
<strong>示例:</strong>
<strong>输入:</strong> 
S = "abcde"
words = ["a", "bb", "acd", "ace"]
<strong>输出:</strong> 3
<strong>解释:</strong> 有三个是&nbsp;S 的子序列的单词: "a", "acd", "ace"。
</pre>
   <p>
    <strong>
     注意:
    </strong>
   </p>
   <ul>
    <li>
     所有在
     <code>
      words
     </code>
     和&nbsp;
     <code>
      S
     </code>
     &nbsp;里的单词都只由小写字母组成。
    </li>
    <li>
     <code>
      S
     </code>
     的长度在&nbsp;
     <code>
      [1, 50000]
     </code>
     。
    </li>
    <li>
     <code>
      words
     </code>
     &nbsp;的长度在&nbsp;
     <code>
      [1, 5000]
     </code>
     。
    </li>
    <li>
     <code>
      words[i]
     </code>
     的长度在
     <code>
      [1, 50]
     </code>
     。
    </li>
   </ul>
  </div>
 </body>
</html>